<template>
  <fieldset>
    <legend>父组件</legend>
    <h1>{{ msg }}</h1>
    <Child @receive="get" :gift="gift"></Child>
    <Bro></Bro>
  </fieldset>
</template>
<script>
import Child from "./Child";
import Bro from "./Bro.vue";
export default {
  data() {
    return {
      msg: "父组件的属性",
      gift: "vue从入门到精通",
    };
  },
  components: {
    Child,
    Bro,
  },
  methods: {
    get(i) {
      console.log(i);
    },
  },
};
</script>
